# filter函数
ls = [1,22,34,24,19,34]
result3 = filter(lambda x : x > 15,ls)
print(result3)
print(list(result3))

students = [
    {'name': 'lucy', 'age': 18},
    {'name': 'tom', 'age': 16},
    {'name': 'jose','age' : 20},
    {'name': 'rose','age' : 25},
]

result4 = filter(lambda x : x['age'] > 18,students)
print(list(result4))
